package com.hl.vcd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hl.vcd.entity.PlayRecords;
import com.hl.vcd.entity.vo.PlayRecordsDetail;

import java.util.List;

/**
 * @author 朱炫达
 */
public interface PlayRecordsService extends IService<PlayRecords> {
    public void addPlayRecords(PlayRecords playRecords);

    public void updatePlayRecords(PlayRecords playRecords);

    public void deletePlayRecordsById(String id);

    public void deleteAllPlayRecordsByUserId(String userId);

    public PlayRecords getPlayRecordsByUserIdAndVideoId(String userId,String videoId);

    public List<PlayRecordsDetail> getPlayRecordsDetailByUserId(String userId);

    public List<PlayRecords> getPlayRecordsByUserId(String userId);
}
